﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MDS
{

    class Show2003DBFConst
    {

        public const int RECORD_LENGTH = 265;
        public const int HEADER_LENGTH = 993;

        public class Fields
        {
            private Fields() { }
            static Fields()
            {
                int offset = 1;
                StopFlag = new DBFRecordFieldAttribute(0, 1);
                StkId = new DBFRecordFieldAttribute(offset + 0, 6);
                StkName = new DBFRecordFieldAttribute(offset + 6, 8);
                ClosePrice = new DBFRecordFieldAttribute(offset + 14, 8);
                OpenPrice = new DBFRecordFieldAttribute(offset + 22, 8);
                TotalMktKnockAmt = new DBFRecordFieldAttribute(offset + 30, 12);
                HighPrice = new DBFRecordFieldAttribute(offset + 42, 8);
                LowPrice = new DBFRecordFieldAttribute(offset + 50, 8);
                KnockPrice = new DBFRecordFieldAttribute(offset + 58, 8);
                BuyPrice1 = new DBFRecordFieldAttribute(offset + 66, 8);
                SellPrice1 = new DBFRecordFieldAttribute(offset + 74, 8);
                TotalMktKnockQty = new DBFRecordFieldAttribute(offset + 82, 10);
                BuyQty1 = new DBFRecordFieldAttribute(offset + 100, 10);
                BuyPrice2 = new DBFRecordFieldAttribute(offset + 110, 8);
                BuyQty2 = new DBFRecordFieldAttribute(offset + 118, 10);
                BuyPrice3 = new DBFRecordFieldAttribute(offset + 128, 8);
                BuyQty3 = new DBFRecordFieldAttribute(offset + 136, 10);
                SellQty1 = new DBFRecordFieldAttribute(offset + 146, 10);
                SellPrice2 = new DBFRecordFieldAttribute(offset + 156, 8);
                SellQty2 = new DBFRecordFieldAttribute(offset + 164, 10);
                SellPrice3 = new DBFRecordFieldAttribute(offset + 174, 8);
                SellQty3 = new DBFRecordFieldAttribute(offset + 182, 10);
                BuyPrice4 = new DBFRecordFieldAttribute(offset + 192, 8);
                BuyQty4 = new DBFRecordFieldAttribute(offset + 200, 10);
                BuyPrice5 = new DBFRecordFieldAttribute(offset + 210, 8);
                BuyQty5 = new DBFRecordFieldAttribute(offset + 218, 10);
                SellPrice4 = new DBFRecordFieldAttribute(offset + 228, 8);
                SellQty4 = new DBFRecordFieldAttribute(offset + 236, 10);
                SellPrice5 = new DBFRecordFieldAttribute(offset + 246, 8);
                SellQty5 = new DBFRecordFieldAttribute(offset + 254, 10);
            }

            public static DBFRecordFieldAttribute StopFlag { get; private set; }
            public static DBFRecordFieldAttribute StkId { get; private set; }
            public static DBFRecordFieldAttribute StkName { get; private set; }
            public static DBFRecordFieldAttribute ClosePrice { get; private set; }
            public static DBFRecordFieldAttribute OpenPrice { get; private set; }
            public static DBFRecordFieldAttribute TotalMktKnockAmt { get; private set; }
            public static DBFRecordFieldAttribute HighPrice { get; private set; }
            public static DBFRecordFieldAttribute LowPrice { get; private set; }
            public static DBFRecordFieldAttribute KnockPrice { get; private set; }
            public static DBFRecordFieldAttribute BuyPrice1 { get; private set; }
            public static DBFRecordFieldAttribute SellPrice1 { get; private set; }
            public static DBFRecordFieldAttribute TotalMktKnockQty { get; private set; }
            public static DBFRecordFieldAttribute BuyQty1 { get; private set; }
            public static DBFRecordFieldAttribute BuyPrice2 { get; private set; }
            public static DBFRecordFieldAttribute BuyQty2 { get; private set; }
            public static DBFRecordFieldAttribute BuyPrice3 { get; private set; }
            public static DBFRecordFieldAttribute BuyQty3 { get; private set; }
            public static DBFRecordFieldAttribute SellQty1 { get; private set; }
            public static DBFRecordFieldAttribute SellPrice2 { get; private set; }
            public static DBFRecordFieldAttribute SellQty2 { get; private set; }
            public static DBFRecordFieldAttribute SellPrice3 { get; private set; }
            public static DBFRecordFieldAttribute SellQty3 { get; private set; }
            public static DBFRecordFieldAttribute BuyPrice4 { get; private set; }
            public static DBFRecordFieldAttribute BuyQty4 { get; private set; }
            public static DBFRecordFieldAttribute BuyPrice5 { get; private set; }
            public static DBFRecordFieldAttribute BuyQty5 { get; private set; }
            public static DBFRecordFieldAttribute SellPrice4 { get; private set; }
            public static DBFRecordFieldAttribute SellQty4 { get; private set; }
            public static DBFRecordFieldAttribute SellPrice5 { get; private set; }
            public static DBFRecordFieldAttribute SellQty5 { get; private set; }
        }
    }


}
